package com.heima.behavior.controller;

import com.heima.behavior.dto.ReadBehaviorDto;
import com.heima.behavior.service.IReadService;
import com.heima.common.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/read_behavior")
public class ReadController {

    @Autowired
    private IReadService readService;
    /**
     * 阅读记录行为
     */
    @PostMapping
    public ResponseResult saveRead(@RequestBody ReadBehaviorDto dto){
        return readService.saveRead(dto);
    }

}
